package com.zw.yzk.kabu.data.network.entity;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhanwei on 2017/3/14.
 */

public class StoreEntity extends Entity {

    @Expose
    @SerializedName("result")
    public Result result;

    public StoreEntity() {
        result = new Result();
        result.goodsList = new ArrayList<>();
    }

    public static class Result {
        @Expose
        @SerializedName("total_rows")
        public int total;
        @Expose
        @SerializedName("shop_detail")
        public Details details;
        @Expose
        @SerializedName("product_list")
        public List<Goods> goodsList;

    }

    public static class Goods {
        @Expose
        @SerializedName("on_shelves_time")
        public String onShelvesTime;
        @Expose
        @SerializedName("cover_image_url")
        public String image;
        @Expose
        @SerializedName("id")
        public int id;
        @Expose
        @SerializedName("sales")
        public int sales;
        @Expose
        @SerializedName("is_buyable")
        public int isBuyable;
        @Expose
        @SerializedName("add_time")
        public String addTime;
        @Expose
        @SerializedName("freight")
        public int freight;
        @Expose
        @SerializedName("sex")
        public int sex;
        @Expose
        @SerializedName("discounted_price")
        public float discountedPrice;
        @Expose
        @SerializedName("sub_type")
        public int subType;
        @Expose
        @SerializedName("original_price")
        public float originalPrice;
        @Expose
        @SerializedName("shop_id")
        public int shopId;
        @Expose
        @SerializedName("name")
        public String name;
        @Expose
        @SerializedName("total_collected")
        public int totalCollected;
        @Expose
        @SerializedName("type")
        public int type;
        @Expose
        @SerializedName("off_shelves_time")
        public String offShelvesTime;
        @Expose
        @SerializedName("introduce")
        public String introduce;
        @Expose
        @SerializedName("shop_name")
        public String shopName;
    }

    public static class Details {
        @Expose
        @SerializedName("shop_owner_imgurl")
        public String image;
        @Expose
        @SerializedName("shop_sign")
        public String shopSign;
        @Expose
        @SerializedName("is_collected")
        public int isCollected;
        @Expose
        @SerializedName("shop_owner_phone_number")
        public String ownerPhone;
        @Expose
        @SerializedName("shop_name")
        public String shopName;
        @Expose
        @SerializedName("shop_id")
        public int shopId;
        @Expose
        @SerializedName("shop_owner_id")
        public String shopOwnerId;
        @Expose
        @SerializedName("shop_background_url")
        public String shopImage;
        @Expose
        @SerializedName("shop_owner_name")
        public String shopOwnerName;
        @Expose
        @SerializedName("shop_head_imgurl")
        public String shopHead;
    }
}
